package com.qianli.user.ro.auth;

import com.qianli.user.ro.BaseComplete;

import java.io.Serializable;
import java.util.Date;

/**
 * name:运营商信息
 * auth:ting.li@qianli-inc.com
 * date:2017/12/2215:22
 * version: v1.0.0
 **/
public class UserAuthCarrierRO extends UserAbastractBaseAuthRO implements BaseComplete, Serializable{

    private static final long serialVersionUID = -7956468450083108592L;

    /**
     *运营商类型，1：51，2:融360
     */
    private Integer type;
    /**
     *运营商地址
     */
    private String carrierUrl;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 更新时间
     */
    private Date gmtModified;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getCarrierUrl() {
        return carrierUrl;
    }

    public void setCarrierUrl(String carrierUrl) {
        this.carrierUrl = carrierUrl;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public Boolean isComplete() {
        return null != getCarrierUrl() && getGmtModified().after(new Date());
    }
}
